/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data;

import data.model.*;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Zenit
 * 
 */
public class EntityContainer {

    private List<Airline> airlines;
    private List<Airplane> airplanes;
    private List<Airport> airports;
    private List<Flight> flights;
    private List<Place> places;
    private List<Route> routes;

    public EntityContainer() {
        this.airlines = new ArrayList<Airline>();
        this.airplanes = new ArrayList<Airplane>();
        this.airports = new ArrayList<Airport>();
        this.flights = new ArrayList<Flight>();
        this.places = new ArrayList<Place>();
        this.routes = new ArrayList<Route>();
    }

    public List<Airline> getAirlines() {
        return airlines;
    }

    public void setAirlines(List<Airline> airlines) {
        this.airlines = airlines;
    }

    public List<Airplane> getAirplanes() {
        return airplanes;
    }

    public void setAirplanes(List<Airplane> airplanes) {
        this.airplanes = airplanes;
    }

    public List<Airport> getAirports() {
        return airports;
    }

    public void setAirports(List<Airport> airports) {
        this.airports = airports;
    }

    public List<Flight> getFlights() {
        return flights;
    }

    public void setFlights(List<Flight> flights) {
        this.flights = flights;
    }

    public List<Place> getPlaces() {
        return places;
    }

    public void setPlaces(List<Place> places) {
        this.places = places;
    }

    public List<Route> getRoutes() {
        return routes;
    }

    public void setRoutes(List<Route> routes) {
        this.routes = routes;
    }

    @Override
    public String toString() {
        String s = "";
        for (Flight p : flights) {
            s += p + "\n";
        }
        return s;
    }
}
